<?php
if (YII_ENV=='dev') {
        return [
                /*   'class' => 'yii\db\Connection',
                   'dsn' => 'oci:dbname=//192.168.54.25:1521/gs;charset=utf8',
                   'username' => 'weixin',
                   'password' => 'weixin',
                   'charset' => 'utf8',
                  // 'tablePrefix'=>"tb_"*/


            'class' => 'apaoww\oci8\Oci8DbConnection',
            'dsn' => 'oci8:dbname=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.133.194.211)(PORT=1521))(CONNECT_DATA=(SID=gs)));charset=utf8;', // Oracle
//            'dsn' => 'oci8:dbname=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.54.103)(PORT=1521))(CONNECT_DATA=(SID=gs)));charset=utf8;', // Oracle
            'username' => 'weixintest',
            'password' => 'weixintest',
            'attributes' => [
                PDO::ATTR_STRINGIFY_FETCHES => true,

            ]

        ];
}else{
     return [
             

            'class' => 'apaoww\oci8\Oci8DbConnection',
            'dsn' => 'oci8:dbname=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.133.194.211)(PORT=1521))(CONNECT_DATA=(SID=gs)));charset=utf8;', // Oracle
            'username' => 'weixin0407',
            'password' => 'weixin0407',
            'attributes' => [
                PDO::ATTR_STRINGIFY_FETCHES => true,

            ]

        ];
}
